<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var str = "导演: 弗兰克·德拉邦特 Frank Darabont&nbsp;&nbsp;&nbsp;主演: 蒂姆·罗宾斯 Tim Robbins /...<br>1994&nbsp;/&nbsp;美国&nbsp;/&nbsp;犯罪 剧情";
        var res=str.split("<br>")[1].trim().split("/");
        // console.log(typeof(res));
        console.log(res);
        console.log(res.map(item=>item.replace(/&nbsp;/g,"")));
    </script>

    <script>
        var a = "<span>2201239人评价</span>";
        // 直接查找提取
        console.log(a.match(/\d+/g));
        // 替换非数字提取
        console.log(a.replace(/[^\d]+/g,""));
    </script>
</body>
</html>